import os 


import socket

def get_ip():
    s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
    s.connect(("8.8.8.8",80))
    a = s.getsockname()
        
    return a[0]



# path = r'D:/HoudiniProject/CGAI/Share/CGAI/geo/t1.rop_geometry1.1.bgeo.sc'

hip = r'D:/Temp/NAS/Share/CGAI/projects'



split_path = hip.split('CGAI')
# print(split_path)


# last = split_path[-1]

net_cgai = f"//{get_ip()}/cgai{split_path[-1]}"

print('net_cgai:',net_cgai)




